using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CSML;

namespace Lab4
{
    public partial class DataForm : Form
    {
        public DataForm(Complex[] data)
        {
            InitializeComponent();
            grid.RowCount = data.Length;
            for (int i = 0; i < data.Length; i++)
            {

                grid.Rows[i].HeaderCell.Value = (i + 1).ToString();
                grid[0, i].Value = data[i].ToString();
            }
        }

        private void grid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}